class Programer(object):
    # comparation
    # express:
    # cmp, eq, lt, gt
    # number
    # opertation:
    # add, sub, mul, div

    def __init__(self,name,age):
        # print('call init')
        self.name=name
        self.age=age

    def __eq__(self, other):
        print('using new eq, comparing %s and %s'%(self.name,other.name))
        if (self.name==other.name):
            return True
        else:
            return False

programmer1=Programer('A',25)
programmer2=Programer('A',12)
programmer3=Programer('B',16)
print(programmer1==programmer2)
print(programmer2==programmer3)
